package com.hudsonmq.spring.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Author: 渔小鲤
 * @DateTime: 2025/8/17 12:12
 **/
@Configuration
@ConfigurationProperties(prefix = "hudson")
public class HudsonMQConfig {


    private String produceGroup;
    private String consumeGroup;


    private int serializableMethod = 0;

    private NameSrv nameSrv;

    public static class NameSrv {

        private List<String> nameSrvAddress;

        public List<String> getNameSrvAddress() {
            return nameSrvAddress;
        }

        public void setNameSrvAddress(List<String> nameSrvAddress) {
            this.nameSrvAddress = nameSrvAddress;
        }
    }

    public String getProduceGroup() {
        return produceGroup;
    }

    public void setProduceGroup(String produceGroup) {
        this.produceGroup = produceGroup;
    }

    public String getConsumeGroup() {
        return consumeGroup;
    }

    public void setConsumeGroup(String consumeGroup) {
        this.consumeGroup = consumeGroup;
    }

    public int getSerializableMethod() {
        return serializableMethod;
    }

    public void setSerializableMethod(int serializableMethod) {
        this.serializableMethod = serializableMethod;
    }

    public NameSrv getNameSrv() {
        return nameSrv;
    }

    public void setNameSrv(NameSrv nameSrv) {
        this.nameSrv = nameSrv;
    }
}
